
<script setup>
const emit = defineEmits(["handlerSearch", "handlerReset"]);
const handlerSearch = () => {
  emit("handlerSearch");
};
const handlerReset = () => {
  emit("handlerReset");
};

</script>

<template>
  <div class="bigBox">
    <div class="box">
      <slot name="search"></slot>
      <el-button  type="primary" plain @click="handlerSearch"
        >搜索</el-button
      >
      <el-button  @click="handlerReset">重置</el-button>
    </div>
    <slot name="btn"></slot>
  </div>
</template>


<style lang="scss" scoped>
.bigBox {
  display: flex;
  justify-content: space-between;
  .box {
    display: flex;
  }
}
</style>